<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE>
<html>
<head>
<jsp:include page="../header.jsp">
	<jsp:param value="统计页面" name="title" />
</jsp:include>
<script type="text/javascript">
function dow() {
	$('.ui.labeled.icon.sidebar').sidebar('setting', 'transition',
			'overlay').sidebar('toggle');
}
$(function() {
	$('.id').sidebar('setting', 'transition', 'overlay').sidebar('toggle');
	
	$('.link').popup({
	    position:'bottom center'
	  })
	;
});

function logout(){
	var isLog = confirm("你确定要注销吗？");
	if(isLog){
		location.replace("logout.jsp");
	}
}
</script>
</head>
<body>
	<jsp:include page="../menu/menue_login.jsp"></jsp:include>
	<div class="teacher-content" style="width:500px; margin-left:100px; margin-top: 50px;">
	<h3>咨询师业绩详情</h3>
	<table class="ui five column table">
	  <thead>
	    <tr><th>咨询师</th>
	    <th>未入学</th>
	    <th>已入学</th>
	    <th>入学率</th>
	    <th>分配总人数</th>
	  </tr></thead>
	  <tbody>
	  	
	    <tr>
	      <td>${emp1.userName}</td>
	      <td>${noTotal1 }</td>
	      <td>${total1 }</td>
	      <td><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${total1/(noTotal1+total1) }"/></td>
	      <td>${noTotal1+total1 }</td>
	    </tr>
	    <tr>
	      <td>${emp2.userName}</td>
	      <td>${noTotal2 }</td>
	      <td>${total2 }</td>
	      <td><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${total2/(noTotal2+total2) }"/></td>
	      <td>${noTotal2+total2 }</td>
	    </tr>
	    <tr>
	      <td>${emp3.userName}</td>
	      <td>${noTotal3 }</td>
	      <td>${total3 }</td>
	      <td><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${total3/(noTotal3+total3) }"/></td>
	      <td>${noTotal3+total3 }</td>
	    </tr>
	    <tr>
	      <td>${emp4.userName}</td>
	      <td>${noTotal4 }</td>
	      <td>${total4 }</td>
	      <td><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${total4/(noTotal4+total4) }"/></td>
	      <td>${noTotal4+total4 }</td>
	    </tr>
	    <tr>
	      <td>${emp5.userName}</td>
	      <td>${noTotal5 }</td>
	      <td>${total5 }</td>
	      <td><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${total5/(noTotal5+total5) }"/></td>
	      <td>${noTotal5+total5 }</td>
	    </tr>
	    <tr>
	      <td>${emp6.userName}</td>
	      <td>${noTotal6 }</td>
	      <td>${total6 }</td>
	      <td><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${total6/(noTotal6+total6) }"/></td>
	      <td>${noTotal6+total6 }</td>
	    </tr>
	  </tbody>
	  <tfoot>
	    <tr><th>总计</th>
	    <th>${noTotal1+noTotal2+noTotal3+noTotal4+noTotal5+noTotal6 }</th>
	    <th>${total1+total2+total3+total4+total5+total6 }</th>
	    <th><fmt:formatNumber type="percent" maxIntegerDigits="3"
            value="${(total1+total2+total3+total4+total5+total6)/(total1+total2+total3+total4+total5+total6+noTotal1+noTotal2+noTotal3+noTotal4+noTotal5+noTotal6) }"/></th>
	    <th>${total1+total2+total3+total4+total5+total6+noTotal1+noTotal2+noTotal3+noTotal4+noTotal5+noTotal6 }</th>
	  </tr></tfoot>
	</table>
	</div>
</body>
</html>